package com.hm.oltu.def;

/**
 * @author shishun.wang
 * @date 2016年5月12日 下午9:57:31
 * @version 1.0
 * @describe
 */
public interface CommonDef {

	public interface BaseInit {

		public interface SessionOrCookieToken {

			public String SESSION_TOKEN_KEY = "CUSTOMER_TOKEN";

			public String CLIENT_COOKIE_JSESSION_ID = "JSESSIONID";

			public String LGOIN_SUCCESSFUL = "LGOIN_SUCCESSFUL";

			public String APP_ACCREDIT_TOKEN = "APP-AuthorizationToken";

			public String REQUEST_TOKEN = "TOKEN";
			
			public String SESSION_LOGIN_USER_INFO = "SESSION_LOGIN_USER_INFO";
			
		}

		public interface HttpInvokerEndpoing {

			public interface Recycle {

				public static String VERSION = "V1";
			}

			public interface Email {

				public static String VERSION = "V1";
			}
			
			public interface System {
				
				public static String VERSION = "V1";
			}
			
			public interface Cms {
				
				public static String VERSION = "V1";
			}
		}
	}

	/**
	 * @author shishun.wang
	 * @date 2016年5月25日 下午10:48:35
	 * @version 1.0
	 * @describe 响应状态码
	 */
	public interface ResponseState {
		/**
		 * 会话超时
		 */
		public int SESSION_TIMEOUT = 10000;
		/**
		 * 被其他用户挤下线
		 */
		public int HAS_CROWDED_OFFLINE = 10001;

		/**
		 * 请求Token失效或已经过期
		 */
		public int REQUEST_TOKEN_LOSE = 10002;
	}

	public enum OperationRecord {

		/**
		 * 标准新增
		 */
		STANDARD_NEW,

		/**
		 * 标准修改
		 */
		STANDARD_UPDATE,

		/**
		 * 标准删除
		 */
		STANDARD_DELETE;
	}

	/**
	 * @author shishun.wang
	 * @date 下午2:33:53 2016年8月6日
	 * @version 1.0
	 * @describe 操作状态
	 */
	public interface OperationStatus {

		public String LOAD_SUCCESSFUL = "加载数据成功";
		
		public String ADD_SUCCESSFUL = "添加成功";

		public String DELELETE_SUCCESSFUL = "删除成功";

		public String UPDATE_SUCCESSFUL = "修改成功";
		
		public String LOAD_FAIL = "加载数据失败";

		public String ADD_FAIL = "添加失败";

		public String DELELETE_FAIL = "删除失败";

		public String UPDATE_FAIL = "修改失败";
		
		public String UPLOAD_SUCCESSFUL = "文件上传成功";

		public String UPLOAD_FAIL = "文件上传失败";
		
		public String QUERY_SUCCESSFUL = "检索数据成功";

		public String QUERY_FAIL = "检索数据失败";
	}
}
